<template>
  <div>
    <div class="item-box" v-for="(item,index) in l" :key="index">
      <div class="item-left">
        <img :src="item.img" alt />
      </div>
      <div class="item-right">
        <p>{{item.title}}</p>
        <p class="item-text">{{item.text}}</p>
        <p class="item-text">
          <span class="item-money">{{item.money}}</span>
          <span class="item-text">{{item.xiao}}</span>
        </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    l: Array
  },
  data() {
    return {
    };
  },
};
</script>

<style scoped>
.item-box {
  width: 100%;
  height: 130px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0;
}
.item-left {
  flex: 1;
  height: 130px;
  display: flex;
  align-items: center;
  margin-left: 10px;
  margin-right: 10px;
}
.item-left img {
  width: 100%;
}
.item-right {
  flex: 2;
  height: 130px;
}
.item-right p {
  text-align: left;
}
.item-right .item-money {
  color: orangered;
  z-index: 2;
}
.item-text {
  color: gray;
  margin-top: 6px;
}
</style>